package com.sznaner.tool.util;

public class IntUtil {

    //计算整数*百分比(percent例如:0.8f)
    public static int getIntPercent(int intValue,float percent){
        float percent_result = (float) intValue * percent;
        return Math.round(percent_result);  //四舍五入取整
    }

    public static int getIntObj(Object object){
        //LogUtils.printDebugLog("object="+object);
        if(object != null){
            return Integer.valueOf(object.toString());
        }
        return 0;
    }
}
